// JavaScript Document
$(function(){
		$('.section1').find('.imgmargin').animate({
						marginTop: '80px'
					}, 1500);
					
		$('#dowebok').fullpage({
			sectionsColor: ['#ff751f', '#eff3f6', '#4b27b7', '#212325', '#62219f', '#212325', '#eff3f6'],
			anchors: ['dpindex', 'chanpin', 'chanpinys', 'hangyeyy', 'zaixianty', 'anlizhongx', 'xinwendt'],
			menu: '#menu',
			continuousVertical: true,
			'navigation': true,
			'navigationPosition': 'right',
			keyboardScrolling:true,
			/*afterLoad: function(anchorLink, index){
				if(index == 1){
					$('.section1').find('.imgmargin').animate({
						marginTop: '80px'
					}, 1500);
				}
				if(index == 2){
					$('.section2').find('.atimtedongmar').animate({
						marginTop: '80px'
					}, 1500);
				}
				if(index == 3){
					$('.section3').find('.atimtedongmarbb').animate({
						marginTop: '0px'
					}, 1500);
				}
				if(index == 4){
					$('.section4').find('.atimtedongmar').animate({
						marginTop: '0px'
					}, 1500);
				}
				if(index == 5){
					$('.section5').find('.atimtedongmar').animate({
						marginTop: '0px'
					}, 1500);
				}
				if(index == 6){
					$('.section6').find('.atimtedongmar').animate({
						marginTop: '0px'
					}, 1500);
				}
				if(index == 7){
					$('.section7').find('.atimtedongmar').animate({
						marginTop: '0px'
					}, 1500);
				}
			},
			onLeave: function(index, direction){
				if(index == 1){
					$('.section1').find('.imgmargin').animate({
						marginTop: '150px'
					}, 1500);
				}
				
				if(index == 2){
					$('.section2').find('.atimtedongmar').animate({
						marginTop: '100px'
					}, 1500);
				}
				if(index == 3){
					$('.section3').find('.atimtedongmarbb').animate({
						marginTop: '80px'
					}, 1500);
				}
				if(index == 4){
					$('.section4').find('.atimtedongmar').animate({
						marginTop: '100px'
					}, 1500);
				}
				if(index == 5){
					$('.section5').find('.atimtedongmar').animate({
						marginTop: '100px'
					}, 1500);
				}
				if(index == 6){
					$('.section6').find('.atimtedongmar').animate({
						marginTop: '100px'
					}, 1500);
				}
				if(index == 7){
					$('.section7').find('.atimtedongmar').animate({
							marginTop: '100px'
					}, 1500);
				}
			}*/
		});
			
		$(".buttonanniu").mouseenter(function(){
		    $(this).css("background","#fff");
		    $(this).find("img").attr("src","images/sy-jiantouc.png");
		});
		$(".buttonanniu").mouseleave(function(){
		    $(this).css("background","#FFA060");
		    $(this).find("img").attr("src","images/sy-jiantou.png");
		});
		
		
		for(var i=0;i<$(".ul-width li").length;i++){
		       var p =  new RegExp($(".ul-width li").eq(i).find('active'));
		       
		}
				
		$('#myCarouselb').carousel();
		
		$("#morelayer").click(function(){
			$("#layercontent").show();
		});
		
		$("#closetanc").click(function(){
			$("#layercontent").hide();
		});
		
	});

	var layercontent =function(){
		layer.open({
	    type: 2,
	    title: '了解更多',
	    maxmin: true,
	    area: ['45%', '75%'],
	    shade: [0.8, '#000'],
	    content: 'productMore.html',
	  });
	}
	
	var IndustryApplication =function(){
	  layer.open({
            type: 2,
            title: '行业应用介绍',
            shadeClose: true,
            shade: false,
            maxmin: true, //开启最大化最小化按钮
            area: ['45%', '75%'],
            shade: [0.8, '#000'],
            content: 'IndustryApplication.html',
        });
	}
	
	var anlicenter =function(){
		layer.open({
	    type: 2,
	    title: '案例中心',
	    maxmin: true,
	    area: ['45%', '75%'],
	    shade: [0.8, '#000'],
	    content: 'aboutusMore.html',
	  });
	}
	
	var applyty =function(){
	  layer.msg("正在维护中，敬请期待！")
	}
	
	var onlinezx =function(){
	  window.location="tencent://message/?uin=704803237&Site=&menu=yes";
	}
	
	var onlinely =function(){
	  layer.msg("正在维护中，敬请期待！")
	}
	
	var onlinewm =function(){
	  layer.open({
	    type: 2,
	    title: '关于我们',
	    maxmin: true,
	    area: ['45%', '75%'],
	    shade: [0.8, '#000'],
	    content: 'aboutusMore.html',
	  });
	}
	
	var onlinezc =function(){
	  layer.open({
	    type: 2,
	    title: '用户支持',
	    maxmin: true,
	    shade: [0.8, '#000'],
	    area: ['45%', '75%'],
	    content: 'zjdipusupport.html',
	  });
	}
	
	var onlinewt =function(){
	  layer.msg("正在维护中，敬请期待！")
	}
	
	var onlinejr =function(){
	  layer.msg("正在维护中，敬请期待！")
	}
	
	var onlinelx =function(){
	  layer.open({
	    type: 2,
	    title: '联系我们',
	    maxmin: true,
	    shade: [0.8, '#000'],
	    area: ['600px', '500px'],
	    content: 'baiduMap.html',
	  });
	}
	
	var diepuqy = function(){
	  layer.open({
	    type: 2,
	    title: '碟普科技与稻普集团合作签约仪式',
	    maxmin: true,
	    shade: [0.8, '#000'],
	    area: ['45%', '75%'],
	    content: 'newsdetail.html',
	  });
	}
	
	var dieputj = function(){
	  layer.open({
	    type: 2,
	    title: '碟普团建活动',
	    maxmin: true,
	    shade: [0.8, '#000'],
	    area: ['45%', '75%'],
	    content: 'newstj.html',
	  });
	}
	
